package ar.com.hc.utils;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class HCResourcesUtils {

	public static URL getResource(String res) {
		return HCConfiguration.class.getClassLoader().getResource(res);
	}

	public static InputStream getStream(String res) throws IOException {
		URL url = getResource(res);
		URLConnection con = url.openConnection();
		con.setUseCaches(false);
		return con.getInputStream();

	}
}
